﻿using System;
using System.Collections.Generic;
using System.Data;

using System.Text;
using KPIS.GERP.ESS.BLL;
using KPIS.GERP.ESS.DAL;

namespace KPIS.GERP.ESS.BLL
{
    public class B_HrmEmployees
    {
        Common common = new Common();
        private static readonly D_HrmEmployees dal = new D_HrmEmployees();

        public string GetEmployeeFullName(int Sequence)
        {
            return dal.GetEmployeeFullName(Sequence);
        }

        public DataSet GetEmployeeInfo(int Sequence, string SearchText)
        {
            return dal.GetEmployeeInfo(Sequence, "");
        }

        public DataSet GetBgmProjOperPerList(string bgm_proj_oper_seq, string SearchText)
        {
            Nullable<int> nbgm_proj_oper_seq = common.ConvertNullInt(bgm_proj_oper_seq);

            return dal.GetBgmProjOperPerList(nbgm_proj_oper_seq, SearchText);
        }

        public DataSet GetMoneyRequestTravelList(string money_req_seq, string SearchText)
        {
            Nullable<int> nmoney_req_seq = common.ConvertNullInt(money_req_seq);

            return dal.GetMoneyRequestTravelList(nmoney_req_seq, SearchText);
        }

        public DataTable GetInfo(int seq)
        {
            return dal.GetInfo(seq);
        }

        public DataTable ListEmployeeByType(string strEmpTypeSeq, string strJobSiteSeq)
        {
            return dal.ListEmployeeByType(strEmpTypeSeq, strJobSiteSeq);
        }
    }
}
